package cn.com.shopec.erp.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/** 
 * @ClassName: CatSpec 
 * @Description: 商品分类与货品规格关联表的实体
 *  
 */
@Entity
@Table(name = "TBL_CAT_SPEC")
public class CatSpec {
	/** id **/
    private String id;
    /** 分类编号 **/
    private String catNo;
    /** 规格编号 **/
    private String specNo;
    
    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "ID", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

    public void setId(String id) {
		this.id = id;
	}
    
    @Column(name = "CAT_NO")
	public String getCatNo() {
		return catNo;
	}

    public void setCatNo(String catNo) {
		this.catNo = catNo;
	}
    
    @Column(name = "SPEC_NO")
	public String getSpecNo() {
		return specNo;
	}

    public void setSpecNo(String specNo) {
		this.specNo = specNo;
	}
}
